﻿using BBICMS.Model;
using BBICMS.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BBICMS.Application.InputModels.Articles
{
    public class PostIM
    {
        public int Id { get; set; }
        //public int PostId { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Title")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public string Title { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Content")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public string Body { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Summary")]
        public string Summary { get; set; }

        public int ViewCount { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Thumbnail")]    
        public string Thumbnail { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Lang")]
        public string Lang { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Author")]
        public string Author { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Pubdate")]
        public DateTime? Pubdate { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Category")]
        public int BlogId { get; set; }
        public virtual Blog Blog { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "KeyWords")]
        public string Keywords { get; set; }
        
        [Display(ResourceType = typeof(Labels), Name = "Description")]
        public string Description { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Recommend")]
        public bool Recommend { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Active")]
        public bool Active { get; set; }
        //public DateTime AddedDate { get; set; }
        //public string AddedBy { get; set; }
        //public DateTime? UpdatedDate { get; set; }
        //public string UpdatedBy { get; set; }
    }
}
